package com.example.empleemanagesystem.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

// Spring RESTful风格的Web服务控制器，处理HTTP请求并返回JSON数据
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "Hello employee manage system!";
    }

    @GetMapping("/hello_am")
    public String hello_am() {
        return "Hello Attendance Management!";
    }

    @GetMapping("/hello_sm")
    public String hello_sm() {
        return "Hello Salary Management!";
    }

    @GetMapping("/hello_sa")
    public String hello_sa() {
        return "Hello System Admin!";
    }
}
